<?php

namespace App\Models;

class Reportverifylog extends Model
{
    protected $fillable = [
        'content',
        'report_id',
        'admin_user_id',
        'type'
    ];
    protected $table = 'report_verify_log';
    protected $Type=[1=>'审核通过',2=>'申报中', 3=>'申报驳回', 4=>'申报失败'];
    public function getTypeAttribute($value)
    {
        return isset($this->Type[$value]) ? $this->Type[$value] : reset($this->Type);
    }
    public function report()
    {
        return $this->hasOne(AdminUser::class,"id","admin_user_id");
    }
}
